package com.ruicar.afs.cloud.basic.detail.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruicar.afs.cloud.common.modules.contract.enums.AffiliatedWayEnum;
import com.ruicar.afs.cloud.common.modules.contract.enums.BusinessTypeEnum;
import com.ruicar.afs.cloud.common.modules.contract.enums.ChannelTypeEnum;
import com.ruicar.afs.cloud.common.modules.contract.enums.ContractStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description:
 */
@Data
@ApiModel(value = "合同信息")
public class ContractInfoVO {
    @ApiModelProperty("合同号码")
    private String contractNo;
    @ApiModelProperty("申请编号")
    private String applyNo;
    @ApiModelProperty("贷款分类")
    private String fiveCategory;
    @ApiModelProperty("合同状态")
    private ContractStatusEnum contractStatus;
    @ApiModelProperty("合同激活时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @ApiModelProperty("合同终止时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    @ApiModelProperty("合同关闭时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date closeDate;
    @ApiModelProperty("渠道类型")
    private ChannelTypeEnum channelType;
    @ApiModelProperty("业务类型")
    private BusinessTypeEnum businessType;
    @ApiModelProperty("宽限期")
    private Integer gracePeriodDays;
    @ApiModelProperty("挂靠方式")
    private AffiliatedWayEnum affiliatedType;
    @ApiModelProperty("特殊拨备额")
    private String specialProvisions;
    @ApiModelProperty("特殊拨备日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date specialProvisionDate;
    @ApiModelProperty(value = "渠道归属")
    private String channelBelong;
    @ApiModelProperty(value = "逾期天数")
    private Integer currentAbsoluteOverdue;
}